﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<skags.Models.UserInfo>" %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        <%: Html.HiddenFor( model => model.UserID ) %>
        <fieldset>
            <legend>Upplýsingar</legend>
            
            <div class="editor-label">
                Fullt nafn:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FullName) %>
                <%: Html.ValidationMessageFor(model => model.FullName) %>
            </div>
            
            <div class="editor-label">
                Kennitala:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.SSN) %>
                <%: Html.ValidationMessageFor(model => model.SSN) %>
            </div>
            
            <div class="editor-label">
                Heimilisfang:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Address) %>
                <%: Html.ValidationMessageFor(model => model.Address) %>
            </div>
            
            <div class="editor-label">
                Póstnúmer:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ZipCode) %>
                <%: Html.ValidationMessageFor(model => model.ZipCode) %>
            </div>
            
            <div class="editor-label">
                Lýsing:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                Facebook slóð:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FacebookUrl) %>
                <%: Html.ValidationMessageFor(model => model.FacebookUrl) %>
            </div>
            <div class="editor-label">
                Óþægur? (undir eftirliti)
            </div>
            <div class="editor-field">
                <%: Html.CheckBoxFor(model => model.IsNaughty)%>
                <%: Html.ValidationMessageFor(model => model.IsNaughty) %>
            </div>
             <p>
                <input type="submit" value="Vista" />
            </p>
        </fieldset>

    <% } %>